package com.ccrfid.rmc6.repository.vehicle;

import com.ccrfid.rmc6.entity.vehicle.VehicleEntryRecordEntity;
import org.springframework.data.repository.Repository;

public interface VehicleEntryRecordRepository extends Repository<VehicleEntryRecordEntity, Long> {

    VehicleEntryRecordEntity save(VehicleEntryRecordEntity entity);

    VehicleEntryRecordEntity getByVehicleIdAndLeaveTimeIsNull(Long vehicleId);

    Boolean existsByVehicleIdAndLeaveTimeIsNull(Long vehicleId);
}
